package com.topideal.supplychain.hades.util;

import org.apache.http.client.HttpClient;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.PoolingClientConnectionManager;

/**
 * httpclient请求池
 * 
 * @author zhangzhihao
 * @date 2016-8-29 上午10:55:28
 */
@Deprecated
public class HttpClientFactory {
    private static final ClientConnectionManager CONNECTION_MANAGER =
            new PoolingClientConnectionManager();

    private static final HttpClient HTTP_CLIENT = new DefaultHttpClient(CONNECTION_MANAGER);

    public static HttpClient getHttpClient() {
        return HTTP_CLIENT;
    }
}
